SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 57881: When you use PROC SORT to sort encrypted data stored in a metadata-bound library, you receive "ERROR: Missing ENCRYPTKEY option on member..."

DetailsHotfixAboutRate It

If your table is in a metadata-bound library and you have specified encryption, you might receive the following error when trying to sort it:

ERROR: Missing ENCRYPTKEY option on member WORK.SORTTMP000000000000000000001.DATA. ;

The error occurs when you use the SORT procedure under the following conditions:

  • You have DATA= and OUT= tables.
  • You have either KEEP or DROP data set options on the input DATA table.

For example, the following code would trigger the error:

proc sort data=mbl_lib.tableName(keep=variableList)
  out=outputTable ;
  by byVariableList ;
run ;

There are several workarounds:

  • Add the ENCRYPTKEY=key data set option after the KEEP or DROP data set options:
proc sort data=mbl_lib.tableName(keep=variableList encryptkey=key)
  out=outputTable ;
  by byVariableList ;
run ;
  • Move the KEEP or DROP data set options to the output table:
proc sort data=mbl_lib.tableName
  out=outputTable(keep=variableList) ;
  by byVariableList ;
run ;
  • Use an SQL procedure instead of PROC SORT:
proc sql ;
  create table outputTable as
  select variableList
  from mbl_lib.tableName
  order by byVariableList ;
quit ;
  • If PROC SORT options are required (for example NODUPKEY), use an intermediate SAS VIEW of the table with the KEEP or DROP data set options:
data work.v_inputTable / view=work.v_inputTable ;
   set mbl_lib.tableName (keep=variableList) ;
run ;
proc sort data=work.v_inputTable
          out=outputTable NODUPKEY ;
   by byVariableList ;
run ;

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASSolaris for x649.49.4_M49.4 TS1M09.4 TS1M4
Linux for x649.49.4_M49.4 TS1M09.4 TS1M4
HP-UX IPF9.49.4_M49.4 TS1M09.4 TS1M4
64-bit Enabled Solaris9.49.4_M49.4 TS1M09.4 TS1M4
64-bit Enabled HP-UX9.49.4_M49.4 TS1M09.4 TS1M4
64-bit Enabled AIX9.49.4_M49.4 TS1M09.4 TS1M4
Windows 7 Professional x649.49.4_M49.4 TS1M09.4 TS1M4
Windows 7 Enterprise x649.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows Server 2012 Std9.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows Server 2012 R2 Std9.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows Server 2012 R2 Datacenter9.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows Server 2012 Datacenter9.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows Server 2008 for x649.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows Server 2008 R29.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows 109.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows 8.1 Pro x649.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows 8.1 Pro 32-bit9.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows 8.1 Enterprise x649.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows 8.1 Enterprise 32-bit9.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows 8 Pro x649.49.4_M49.4 TS1M09.4 TS1M4
Microsoft Windows 8 Enterprise x649.49.4_M49.4 TS1M09.4 TS1M4
Microsoft® Windows® for x649.49.4_M49.4 TS1M09.4 TS1M4
Microsoft® Windows® for 64-Bit Itanium-based Systems9.49.4 TS1M0
z/OS 64-bit9.49.4_M49.4 TS1M09.4 TS1M4
z/OS9.49.4_M49.4 TS1M09.4 TS1M4
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.